<?php
/**
 * Created by PhpStorm.
 * User: helloxingtongshi
 * Date: 2016-05-18
 * Time: 11:07
 */
include 'staff.info.php';

?>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="js/time.js"></script>
   <!-- <link href="CSS/style.css" rel="stylesheet">-->
</head>
<body background="../../money/pic/topbg.jpg">
                <table width="98%" height=""  border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="22" valign="top" class="word_orange">当前位置：系统管理 &gt; 职工信息&gt;&gt;</td>
                    </tr>
                </table>
                <table width="80%" border="0" cellspacing="0" cellpadding="0" >
                    <caption align="center"><h2>职工基本信息<h2>
                 </table>
                        <table width="50px"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" >
                            <tr  width="10px" bgcolor="#e3F4F7">
                                <th width="5px">姓名</th>
                                <th >年龄</th>
                                <th >工资</th>
                                <th>职位</th>
                                <th>性别</th>
                                <th >学历</th>
                                <th >入职时间</th>
                                <th>联系方式</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tr>
                                <form action="staff.php" method="post" name="addstaff" >
                                    <td><input type="text" name="staffname"  size="10" value=""/></td>
                                    <td><input type="text" id="age" name="age" size="5"value="" /></td>
                                    <td><input type="text" name="wage" id="wage"size="10" value="" /></td>
                                    <td><input type="text" name="position"size="15" value="" /></td>
                                    <td><input type="radio" name="sex" value="男" checked/>男
                                        <input type="radio" name="sex" value="女" />女
                                    </td>
                                    <td><select name="educational"  value="" <?php echo  "selected" ?>>
                                            <option>--请选择--</option>
                                            <option value="初中" >初中</option>
                                            <option value="高中" >高中</option>
                                            <option value="本科" >本科</option>
                                            <option value="研究生" >研究生</option>
                                        </select>
                                    </td>
                                    <td><input  type="text" id="time" name="time"size="15" style="border:1px solid #999;" onclick="fPopCalendar(event,this,this)" onfocus="this.select()" readonly="readonly" ></td>
                                    <td><input  type="text" id="phone" name="phone" size="15"></td>
                                    <td>
                                        <input type="hidden" name="id" value=""/>
                                        <input type="submit" name="addstaff" value="添加" />
                                    </td>
                                </form>
                            <?php foreach($staffl as $values){ ?>
                                <tr>
                                <form action="staff.php" method="post" name="delstaff" >
                                    <td><input type="text" id="age" size="10"name="age" value="<?php echo $values[1]?>" ></td>
                                    <td><input type="text" id="age" name="age" size="5"value="<?php echo $values[2]?>" disabled="disabled"/></td>
                                    <td><input type="text" name="wage" id="wage" size="10"value="<?php echo $values[3]?>" disabled="disabled"/></td>
                                    <td><input type="text" name="position" size="15"value="<?php echo $values[4]?>" disabled="disabled"/></td>
                                    <td><input type="text" name="sex" size="10" value="<?php echo $values[5]?>" disabled="disabled"/></td>
                                    <td><input type="text" name="educational" size="10"value="<?php echo $values[6]?>" disabled="disabled"/>
                                    <td><input  type="text" id="time" name="time"size="15" disabled="disabled" value="<?php echo $values[7]?>" ></td>
                                    <td><input  type="text" id="phone" name="phone" size="15" disabled="disabled" value="<?php echo $values[8]?>" ></td>
                                    <td>
                                        <input type="hidden" name="id" value="<?php echo $values[0]?>"/>
                                        <input type="submit" name="delstaff" value="删除" />
                                    </td>
                                </form>
                            <?php } ?>

</table>
</body>
</html>